AUTOMAKE_OPTIONS = foreign
TOPSRCDIR = $(srcdir)/..
TOPBUILDDIR = $(builddir)/../fplll
DEFINES =

CLEANFILES = *.gcov .libs/*.gcda .libs/*.gcno *.gcno *.gcda

include_fpllldir=$(includedir)/fplll

EXTRA_DIST=test_utils.h \
	lattices/dim55_in \
	lattices/example2_in \
	lattices/example3_in \
	lattices/example_in \
	lattices/example_svp_in \
	lattices/example_svp_out \
	lattices/example_dsvp_in \
	lattices/example_dsvp_out \
	lattices/example_cvp_in_lattice \
	lattices/example_cvp_in_lattice2 \
	lattices/example_cvp_in_lattice3 \
	lattices/example_cvp_in_lattice4 \
	lattices/example_cvp_in_lattice5 \
	lattices/example_cvp_in_target \
	lattices/example_cvp_in_target2 \
	lattices/example_cvp_in_target3 \
	lattices/example_cvp_in_target4 \
	lattices/example_cvp_in_target5 \
	lattices/example_cvp_out \
	lattices/example_cvp_out2 \
	lattices/example_cvp_out3 \
	lattices/example_cvp_out4 \
	lattices/example_cvp_out5 \
	lattices/example_list_cvp_in_lattice \
	lattices/grammatrix_dimension4 \
	lattices/grammatrix_dimension4_out \
	lattices/grammatrix_dimension7 \
	lattices/grammatrix_dimension7_out

# include TOPBUILDIR for fplll_config.h
AM_CPPFLAGS = -I$(TOPSRCDIR) -I$(TOPSRCDIR)/fplll -I$(TOPBUILDDIR) -DTESTDATADIR=\"$(TOPSRCDIR)/\"

STAGEDIR := $(realpath -s $(TOPBUILDDIR)/.libs)
AM_LDFLAGS = -L$(STAGEDIR) -Wl,-rpath,$(STAGEDIR) -lfplll -no-install $(LIBQD_LIBS)

TESTS = test_nr test_lll test_enum test_cvp test_svp test_bkz test_pruner test_gso test_lll_gram test_hlll test_svp_gram test_bkz_gram test_counter test_babai test_ceil

test_pruner_LDADD=$(LIBQD_LIBS)

test_nr_SOURCES = test_nr.cpp
test_lll_SOURCES = test_lll.cpp
test_enum_SOURCES = test_enum.cpp
test_svp_SOURCES = test_svp.cpp
test_cvp_SOURCES = test_cvp.cpp
test_bkz_SOURCES = test_bkz.cpp
test_pruner_SOURCES = test_pruner.cpp
test_gso_SOURCES = test_gso.cpp
test_lll_gram_SOURCES = test_lll_gram.cpp
test_hlll_SOURCES = test_hlll.cpp
test_svp_gram_SOURCES = test_svp_gram.cpp
test_bkz_gram_SOURCES = test_bkz_gram.cpp
test_counter_SOURCES  = test_counter.cpp
test_babai_SOURCES  = test_babai.cpp
test_ceil_SOURCES = test_ceil.cpp
check_PROGRAMS = $(TESTS)
